package com.me.jingdongshop.dagger2.module;


import com.me.common.base.BaseView;
import com.me.jingdongshop.presenter.TestFragmentPre;

import dagger.Module;
import dagger.Provides;

/**
 * Created on 2017/5/5.
 * dagger2的module
 * @author Chilam
 */
@Module
public class TestFragmentModule {
    private BaseView mBaseView;

    public TestFragmentModule(BaseView baseView){
        this.mBaseView = baseView;
    }

    @Provides
    public BaseView providerView(){
        return mBaseView;
    }

    @Provides
    public TestFragmentPre providerPresenter(BaseView baseView){
        return new TestFragmentPre(baseView);
    }
}
